/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f0f2f5;
}

/* 应用主容器 */
.app {
  min-height: 100vh;
  background-color: #f0f2f5;
  padding: 20px;
}

/* 仪表板容器 */
.dashboard {
  max-width: 1400px;
  margin: 0 auto;
}

/* 仪表板标题 */
.dashboard-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-weight: 600;
}

/* 模块网格布局 */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

/* 每个模块卡片样式 */
.module-card {
  height: 200px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.module-card:hover .module-card-body {
  transform: scale(1.05);
}

/* 模块卡片内容 */
.module-card-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

/* 模块卡片图标容器 */
.module-icon-container {
  position: absolute;
  right: 20px;
  top: 20px;
  opacity: 0.2;
  font-size: 48px;
}

/* 详细视图容器 */
.detail-view {
  background: white;
  border-radius: 8px;
  padding: 24px;
  margin-top: 20px;
}

/* 返回按钮 */
.back-button {
  margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .app {
    padding: 10px;
  }
  
  .modules-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .module-card {
    height: 160px;
  }
  
  .dashboard-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

/* 加载动画 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 18px;
  color: #666;
}

/* 统计卡片 */
.stat-card {
  margin-bottom: 16px;
}

/* 图表容器 */
.chart-container {
  margin: 16px 0;
}

/* 表格样式调整 */
.ant-table-wrapper {
  margin-top: 16px;
}
